package cn.jiyun.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "tb_order")
public class Order {
    @TableId(value = "id",type = IdType.AUTO)
    private  Integer id;
   @TableField("order_id")
    private  String orderId;
   @TableField("user_id")
    private Integer userId;
   @TableField("address_region")
    private  String addressRegion;
   @TableField("address_detailed")
    private String addressDetailed;
   @TableField("address_name")
    private String addressName;
   @TableField("address_phone")
    private String addressPhone;
   @TableField("coupon_id")
    private Integer couponId;
   @TableField("base_price")
    private BigDecimal basePrice;
   @TableField("total")
    private BigDecimal total;
   @TableField("status")
    private Integer status;
   @TableField("under_time")
    private LocalDateTime underTime;
   @TableField("pay_id")
    private String payId;
   @TableField("pay_time")
    private  LocalDateTime payTime;
}
